/*
*????????????????????????????,??????????
* v:??????
* opt:????????
*/
function selectvalue(v,opt){
	if (opt=null )
        return "";

	if (opt.indexOf("(")  != -1){
	
		var key = opt.substring(0,opt.indexOf("(").toLowerCase() );
	
		var param = opt.substring(opt.indexOf("("), opt.indexOf(")")-opt.indexOf("(") );
		
		if (key == "area") { //????

		}else if (key == "dept") { //????
			v = window.showModalDialog('../common/TreeView/SelectDept.jsp', v + "|" + param, 'dialogWidth=680px;dialogHeight=450px;scrollbars=no');
		}else if (key == "person") { //????
			v = window.showModalDialog('../common/TreeView/SelectUser.jsp', v + "|" + param, 'dialogWidth=680px;dialogHeight=450px;scrollbars=no');
		}else if (key == "date") { //????
		
		}	
			
	}else {
	
		v = window.showModalDialog('../report/IndexChoice.htm', v + "|" + opt, 'dialogWidth=680px;dialogHeight=450px;scrollbars=no');
	
	}
	
	return v;
}